package com.example.qing.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class Comment {
    @TableId(value = "id",type = IdType.AUTO)
    private Integer id;
    private String content;
    private String time;
    private String userId;
    private String userName;
    private Integer novelId;
    private Integer parentId;
    private String img;
    @TableField(exist = false)
    private List<Comment>child;
}
